package cn.cloudreal.cbms.system.service.impl;

import java.util.List;

import cn.cloudreal.cbms.common.util.PageBean;
import cn.cloudreal.cbms.system.dao.SampleDao;
import cn.cloudreal.cbms.system.service.SampleService;
import cn.cloudreal.cbms.vo.Sample;

/**
 * <p>
 * Title: ITC
 * </p>
 * <p>
 * Description:查询数据服务层实现类
 * </p>
 * <p>
 * Copyright: Copyright (c) 2010
 * </p>
 * <p>
 * Company:云恒瑞通
 * </p>
 * 
 * @author chendanggui
 * @date 2011-11-02
 */
public class SampleServiceImpl implements SampleService
{

    /** 查询数据dao */
    private SampleDao sampleDao;

    /**
     * 查询数据列表
     * 
     * @return
     */
    public List<Sample> getSamples(PageBean page)
    {
        return sampleDao.getSamples(page);
    }

    /**
     * 查询单个数据
     * 
     * @return
     */
    public Sample getSample(long id)
    {
        return sampleDao.getSample(id);
    }

    /**
     * 更新
     * 
     * @return
     */
    public void updateSample(Sample sample)
    {
        sampleDao.updateSample(sample);

    }

    /**
     * 删除
     * 
     * @return
     */
    public void delSample(long id)
    {
        sampleDao.delSample(id);

    }

    /**
     * 新增
     * 
     * @return
     */
    public void addSample(Sample sample)
    {
        sampleDao.addSample(sample);

    }

    public SampleDao getSampleDao()
    {
        return sampleDao;
    }

    public void setSampleDao(SampleDao sampleDao)
    {
        this.sampleDao = sampleDao;
    }

}
